<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        /*var Person = new Object();
        console.log(typeof Person);
        Person.name = "华仔";
        Person.age = 18;
        Person.display = function () {
            console.log("name: " + this.name + "\n" +
                        "age: " + this.age);
        };
        Person.display();*/

        var Person = {
            name: "华仔",
            age: 18,
            display: function () {
                console.log("name: " + this.name + "\n" +
                    "age: " + this.age);
            },
        };
        console.log(typeof Person)
        Person.display();
    </script>
</head>
<body>

</body>
</html>